all: client Tracker clean

client: Sources/Client/thread.c communications.o lecture_dossier.o gestion_liste.o md5.o generation_cle.o
	gcc -std=gnu99 -g -Wall -pthread Sources/Client/thread.c Sources/communications.o Sources/lecture_dossier.o Sources/gestion_liste.o Sources/md5.o Sources/generation_cle.o -o client

communications.o: Sources/Client/communications.c
	gcc -std=gnu99 -c -g -Wall Sources/Client/communications.c -o Sources/communications.o

lecture_dossier.o: Sources/Client/lecture_dossier.c
	gcc -std=gnu99 -c -Wall Sources/Client/lecture_dossier.c -o Sources/lecture_dossier.o

gestion_liste.o: Sources/Client/gestion_liste.c
	gcc -std=gnu99 -c -Wall Sources/Client/gestion_liste.c -o Sources/gestion_liste.o

md5.o: Sources/Client/md5.c
	gcc -std=gnu99 -c -Wall Sources/Client/md5.c -o Sources/md5.o

generation_cle.o: Sources/Client/generation_cle.c
	gcc -std=gnu99 -c -Wall Sources/Client/generation_cle.c -o Sources/generation_cle.o

Tracker: 
	javac -d Sources -cp Sources Sources/Tracker/*.java

clean:
	rm  Sources/*.o
